<template>
	<view class="actors">
		<view class="h2">影人</view>
		<scroll-view class="carousel" scroll-x="true">
			<view class="carousel_ul" style="left: 0px;">
				<block v-for="(item,index) in movieUserList" :key="item.performerId">
					<view class="carousel_li">
						<image :src="item.performerImg"></image>
						<view class="name">{{item.performerName}}</view>
						<view>{{item.performerType}}</view>
					</view>
				</block>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		props: {
			movieUserList: {
				type: Array
			}
		}
	}
</script>

<style lang="scss" scoped>
	.actors {
		view.h2 {
			height: 40upx;
			margin-bottom: 0upx;
			font-size: 30upx;
			font-weight: 500;
			color: #aaa;
			margin-top: 20upx;
		}

		.carousel {
			width: 100%;
			overflow: hidden;

			.carousel_ul {
				display: flex;
				padding: 30upx 0;
				position: relative;

				.carousel_li {
					flex-shrink: 0;
					width: 150upx;
					margin-right: 20upx;
					overflow: hidden;

					image {
						width: 150upx;
						height: 212upx;
					}

					.name {
						color: #494949;
					}

					view {
						font-size: 28upx;
						line-height: 37upx;
						text-align: center;
						margin-top: 16upx;
						color: #aaa;
					}
				}
			}
		}
	}
</style>
